import request from '@/utils/request'
export function getCarAreaList() {
  return request.get('/parking/area/list')
}
export function addCarAreaAPI(data){
  return request.post('/parking/area',data)
}

export function getRuleListAPI() {
  return request.get('/parking/rule/list')
}
export function delRuleAPI(id){
  return request.delete(`/parking/area/${id}`)
}

export function updateCarAreaAPI(data){
  return request.put('parking/area',data)
}